/**
 * Created by Fantasy on 2016/4/27.
 */
define(function () {
    //查询所有的菜单
    ePart.app.cfg = {};
    return {
        init: function () {
            ePart.app.iptv.getAllMenuList().done(function (resp) {
                ePart.app.cfg.FULL_MENU_LIST = resp.menuList;
            });
            //查询菜单主菜单对应的关系
            ePart.app.iptv.otherMenuList().done(function (resp) {
                ePart.app.cfg.OTHER_MENU_LIST = resp;
            });
            ePart.app.iptv.mySpaceMenuList().done(function (resp) {
                ePart.app.cfg.MY_MENU_LIST = resp;
            });
        }
    }
});